# git://git.denx.de/u-boot.git
# https://github.com/u-boot/u-boot
# https://source.denx.de/u-boot/u-boot.git
# https://gitee.com/mirrors/u-boot.git

UB_GIT_URL_github		?= https://github.com/u-boot/u-boot
UB_GIT_URL_gitee		?= https://gitee.com/mirrors/u-boot.git
ifdef UB_GIT_URL_$(NET_SELECT)
UB_GIT_URL				?= $(UB_GIT_URL_$(NET_SELECT))
else
UB_GIT_URL				?= https://source.denx.de/u-boot/u-boot.git
endif
UB_SITE 				?= https://ftp.denx.de/pub/u-boot
UB_BRANCH				?= master

UB_VERSION 				?= 2024.01
UB_BASE					?= u-boot-$(UB_VERSION)
UB_PKG 					?= $(UB_BASE).tar.bz2

UB_TARGETS				?= all
UB_SAVECONF				?= $(UB_CONFIG)
UB_ELF					?= $(O_UB_DIR)/u-boot
UB_IMAGE				?= $(O_UB_DIR)/u-boot.bin

UB_SRC_DIR				?= u-boot
UB_GIT_DIR				?= $(UB_SRC_DIR)/u-boot-repo
UB_VER_DIR 				?= $(UB_SRC_DIR)/$(UB_BASE)

S_UB_DIR				= $(EEL_SRC_DIR)/$(UB_VER_DIR)
G_UB_DIR				= $(EEL_SRC_DIR)/$(UB_GIT_DIR)
O_UB_DIR				= $(EEL_OUT_DIR)/$(ARCH)/$(UB_VER_DIR)/$(UB_CONFIG)
ifneq ($(S_UB_DIR),$(wildcard $(S_UB_DIR)))
S_UB_DIR				= $(G_UB_DIR)
endif

